﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.SqlClient;
using jiaju.Models;
using jiaju.Models.DBModel;
using jiaju.Models.DAL;

namespace jiaju.Controllers
{
    public class HomeController : Controller
    {
        // GET: Home
        public ActionResult Index()
        {
            //公司信息
            HomeInfo Info = HomeInfoService.getHomeInfo();
            ViewBag.A = Info;
            //商品图片
            List<Picutre> TuPian = PicutreService.getPicutre();
            ViewBag.B = TuPian;
            //新闻
            List<News> news = NewsService.getNews();
            ViewBag.C = news;
            return View();
        }

    }
}